package com.foodsafe.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.google.gson.annotations.Expose;

/**
 * Abuseadditive entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "abuseadditive", catalog = "foodsafe")
public class Abuseadditive implements java.io.Serializable {

	// Fields
	@Expose
	private Integer abuseAdditiveId;
	@Expose
	private String abuseAddiFoodName;
	@Expose
	private String abuseAddiEngName;
	@Expose
	private String abuseAddiChiaName;
	@Expose
	private String abuseAddiEffect;
	@Expose
	private String abuseAddiCheckMethod;
	@Expose
	private Date abuseAddiPubTime;

	// Constructors

	/** default constructor */
	public Abuseadditive() {
	}

	/** full constructor */
	public Abuseadditive(String abuseAddiFoodName, String abuseAddiEngName,
			String abuseAddiChiaName, String abuseAddiEffect,
			String abuseAddiCheckMethod, Date abuseAddiPubTime) {
		this.abuseAddiFoodName = abuseAddiFoodName;
		this.abuseAddiEngName = abuseAddiEngName;
		this.abuseAddiChiaName = abuseAddiChiaName;
		this.abuseAddiEffect = abuseAddiEffect;
		this.abuseAddiCheckMethod = abuseAddiCheckMethod;
		this.abuseAddiPubTime = abuseAddiPubTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "AbuseAdditiveId", unique = true, nullable = false)
	public Integer getAbuseAdditiveId() {
		return this.abuseAdditiveId;
	}

	public void setAbuseAdditiveId(Integer abuseAdditiveId) {
		this.abuseAdditiveId = abuseAdditiveId;
	}

	@Column(name = "AbuseAddiFoodName", length = 32)
	public String getAbuseAddiFoodName() {
		return this.abuseAddiFoodName;
	}

	public void setAbuseAddiFoodName(String abuseAddiFoodName) {
		this.abuseAddiFoodName = abuseAddiFoodName;
	}

	@Column(name = "AbuseAddiEngName", length = 32)
	public String getAbuseAddiEngName() {
		return this.abuseAddiEngName;
	}

	public void setAbuseAddiEngName(String abuseAddiEngName) {
		this.abuseAddiEngName = abuseAddiEngName;
	}

	@Column(name = "AbuseAddiChiaName", length = 32)
	public String getAbuseAddiChiaName() {
		return this.abuseAddiChiaName;
	}

	public void setAbuseAddiChiaName(String abuseAddiChiaName) {
		this.abuseAddiChiaName = abuseAddiChiaName;
	}

	@Column(name = "AbuseAddiEffect", length = 256)
	public String getAbuseAddiEffect() {
		return this.abuseAddiEffect;
	}

	public void setAbuseAddiEffect(String abuseAddiEffect) {
		this.abuseAddiEffect = abuseAddiEffect;
	}

	@Column(name = "AbuseAddiCheckMethod", length = 256)
	public String getAbuseAddiCheckMethod() {
		return this.abuseAddiCheckMethod;
	}

	public void setAbuseAddiCheckMethod(String abuseAddiCheckMethod) {
		this.abuseAddiCheckMethod = abuseAddiCheckMethod;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "AbuseAddiPubTime", length = 0)
	public Date getAbuseAddiPubTime() {
		return this.abuseAddiPubTime;
	}

	public void setAbuseAddiPubTime(Date abuseAddiPubTime) {
		this.abuseAddiPubTime = abuseAddiPubTime;
	}

}